<?php
$goods1=[
                array('name'=>'主板','price'=>'379','producing'=>'广东','num'=>3),
                array('name'=>'显卡','price'=>'799','producing'=>'上海','num'=>2),
                array('name'=>'硬盘','price'=>'589','producing'=>'北京','num'=>5)
];
echo $goods1[0]['price'];
foreach($goods1 as $value){
    foreach($value as $k=>$v){
        echo $k,"--".$v;
    }
    echo "<br>";
}
$goods2=
[
    ['主板','379','广东'],
    ['显卡','799','上海'],
    ['硬盘','589','北京']
];
echo $goods2[0][1]; 
$goods3=
[
    '主板'=>['379','广东',3],
    '显卡'=>['799','上海',2],
    '硬盘'=>['589','北京',5]
];
echo $goods3['主板'][0];